package cn.itsource.pethome.org.mapper;

import cn.itsource.pethome.Basic.mapper.BaseMapper;
import cn.itsource.pethome.org.domain.Employee;
import cn.itsource.pethome.org.domain.Shop;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ShopMapper extends BaseMapper<Shop> {
    /**
     * 根据id查询商铺信息
     * @param shop_id
     * @return
     */
    List<Shop> findById(Long shop_id);

    /**
     * 查询所有商铺以便地图查找
     * @return
     */
    List<Shop> loadAllShop();

    /**
     * 通过商铺登录用户查询商铺
     * @param id 登录用户id
     * @return
     */
    Shop findByEmployeeId(Long id);
}
